package com.business.business.web.web;

import cn.hutool.json.JSONObject;
import com.business.business.common.base.BaseController;
import com.business.business.support.annotaion.Action;
import com.business.business.support.model.RespEntity;
import com.business.business.web.service.BusinessEvaluationService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.annotation.Resource;

/**
 * @author Yang yu
 * @version 1.0
 * @date 2020/7/18 15:28
 */
@Action
@RequestMapping(value = "evaluation")
public class BusinessEvaluationController extends BaseController {
    @Resource
    private BusinessEvaluationService businessEvaluationService;

    /**
     * 单位评估接口
     * @param jsonParam
     * @return
     */
    @RequestMapping(value = "/getBusinessEvaluation", method = RequestMethod.GET)
    public RespEntity fireDepartmentTreeList(@RequestBody(required = false) JSONObject jsonParam) {
        return businessEvaluationService.getBusinessEvaluation(jsonParam);
    }

}
